home *** CD-ROM | disk | FTP | other *** search
- /* Imports GFX from TLNG 2.0 to FinalWriter97 */
- /* FW97-V1.0 © 19.07.99 by Jochen Grus */
-
- OPTIONS RESULTS
- ADDRESS "FINALW.1"
-
- 'insertimage ram:0.gfx'
- OPTIONS RESULTS
- GetDocItemPrefs "DECIMAL"
- deci=RESULT
- DocItemPrefs "DECIMAL PERIOD"
- GetPageSetup "WIDTH"
- pw=RESULT
- GetSectionSetup "INSIDE OUTSIDE"
- PARSE VAR RESULT x1 x2
- cent=(x1+pw-x2)/2
- FirstObject "SELECTED"
- o=RESULT
- IF o~=0 THEN
- DO
- cnt=0
- DO UNTIL o=0
- obj.cnt=o
- NextObject o "SELECTED"
- o=RESULT
- cnt=cnt+1
- END
- DO i=0 TO cnt-1
- GetObjectType obj.i
- type=RESULT
- GetObjectCoords obj.i
- PARSE VAR RESULT p l t w h
- IF type=2 | type=3 THEN
- SetObjectCoords obj.i p cent-(w-l)/2 t cent+(w-l)/2 h/2
- ELSE
- SetObjectCoords obj.i p cent-w/2 t w/4 h/4
- END
- END
- IF deci~="" THEN DocItemPrefs "DECIMAL" deci
-
- EXIT
-